package com.dries.portal.module.convener.vo;

import com.dries.portal.module.convener.entity.ConvenerLikes;
import com.dries.portal.module.convener.enums.ConvenerPaymentType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/2 15:33
 */
@Data
public class ConvenerVo {

    private Integer cid;
    /**
     * 发起召集的标题
     */
    private String title;
    /**
     * 发起召集写的文案
     */
    private String text;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 召集类型
     */
    private String activity;
    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 用户头像
     */
    private String userAvatar;
    /**
     * 最大人数
     */
    private Integer maxUser;
    /**
     * 召集令状态
     */
    private Integer convenerStatus;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 召集时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 支付方式
     */
    private ConvenerPaymentType paymentType;
    /**
     * 展示时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date showTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;

    /**
     * 店铺ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;

    /**
     * 订单ID
     */
    private Long orderId;

    private ShopDetailVo shopDetail;

    private boolean isLikes = false;

    private List<ConvenerLikes> convenerLikes;

    private Integer onlineUser = 0;

}
